package com.ftg.learn.chapter03.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author kangjx
 * @date 2022/11/3
 */
@Component
@Data
public class MysqlDatasource {

    @Value("${mysql.driverclass}")
    String driverclass;

    @Value("${mysql.username}")
    String username;

    @Value("${mysql.passowrd}")
    String passowrd;

    @Value("${mysql.url}")
    String url;
}
